package com.huawei.updatesdk.service.otaupdate;

import android.content.Intent;

public class c {
    private static final Object a = new Object();
    private static c b = null;
    private CheckUpdateCallBack c;

    public static c a() {
        c cVar;
        synchronized (a) {
            if (b == null) {
                b = new c();
            }
            cVar = b;
        }
        return cVar;
    }

    public void a(int i) {
        if (this.c != null) {
            this.c.onMarketStoreError(i);
        }
    }

    public void a(Intent intent) {
        if (this.c != null) {
            this.c.onMarketInstallInfo(intent);
        }
    }

    public void a(CheckUpdateCallBack checkUpdateCallBack) {
        this.c = checkUpdateCallBack;
    }

    public void b(Intent intent) {
        if (this.c != null) {
            this.c.onUpdateInfo(intent);
        }
    }
}
